class Department < ActiveRecord::Base
	has_many :roles,:order=>'name'
	validates_presence_of :name,:message=>'没有填写部门名称'
	validates_uniqueness_of :name,:message=>'该部门已经存在'
end
